package com.cn.springcloudwechat.model.articleAndMenu;

import org.joda.time.DateTime;

import java.util.Date;

/**
*@program: YmMenuTag
*@author: Administrator
*@create: 2018-07-17 17:57
*/
public class YmMenuTag {
    /**
     * 菜单id
     */
    private Long menuTagId;
    /**
     * 父类菜单id
     */
    private Long parentId;
    /**
     * 菜单名称
     */
    private String menuTagName;
    /**
     * 菜单图标url
     */
    private String menuIco;
    /**
     * 菜单连接
     */
    private String menuTagUrl;
    /**
     *  创建时间
     */
    private Date createTime;
    /**
     * 创建时间 yyyy-MM-dd
     */
    private String strCreateTime;
    /**
     *  更新时间
     */
    private Date updateTime;
    /**
     * 更新时间 yyyy-MM-dd
     */
    private String strUpdateTime;
    /**
     *  状态
     */
    private Short state;

    public Long getMenuTagId() {
        return menuTagId;
    }

    public void setMenuTagId(Long menuTagId) {
        this.menuTagId = menuTagId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getMenuTagName() {
        return menuTagName;
    }

    public void setMenuTagName(String menuTagName) {
        this.menuTagName = menuTagName == null ? null : menuTagName.trim();
    }

    public String getMenuIco() {
        return menuIco;
    }

    public void setMenuIco(String menuIco) {
        this.menuIco = menuIco == null ? null : menuIco.trim();
    }

    public String getMenuTagUrl() {
        return menuTagUrl;
    }

    public void setMenuTagUrl(String menuTagUrl) {
        this.menuTagUrl = menuTagUrl == null ? null : menuTagUrl.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.strCreateTime=new DateTime(createTime).toString("yyyy-MM-dd hh:mm:ss");
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.strUpdateTime=new DateTime(updateTime).toString("yyyy-MM-dd hh:mm:ss");
        this.updateTime = updateTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getStrCreateTime() {
        return strCreateTime;
    }

    public String getStrUpdateTime() {
        return strUpdateTime;
    }

    @Override
    public String toString() {
        return "YmMenuTag{" +
                "menuTagId=" + menuTagId +
                ", parentId=" + parentId +
                ", menuTagName='" + menuTagName + '\'' +
                ", menuIco='" + menuIco + '\'' +
                ", menuTagUrl='" + menuTagUrl + '\'' +
                ", createTime=" + createTime +
                ", strCreateTime='" + strCreateTime + '\'' +
                ", updateTime=" + updateTime +
                ", strUpdateTime='" + strUpdateTime + '\'' +
                ", state=" + state +
                '}';
    }
}